if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sp_PhieuNhapXuat_UpdateInHoaDon]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[sp_PhieuNhapXuat_UpdateInHoaDon]
GO
CREATE PROC [sp_PhieuNhapXuat_UpdateInHoaDon]
	@ID				INT
AS
BEGIN
	UPDATE PhieuNhapXuat
		SET
			Xuat_hoa_don = 1
		WHERE ID=@ID
END